<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr= ["html","css"];
        /* indexOf    arr.indexOf(value)  获取数组的下标 */
        console.log(arr.indexOf("js"));
        console.log(arr.indexOf("css"))
    </script>
</body>
</html>